package com.ruoyi.gd.qybjk.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 企业报价库业务对象 z_qybjk
 *
 * @author ruoyi
 * @date 2024-07-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ZQybjkBo extends BaseEntity {

    /**
     * id
     */
    @NotBlank(message = "id不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 序号
     */
    @NotBlank(message = "序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String xh;

    /**
     * 仪器名称
     */
    @NotBlank(message = "仪器名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String yqmc;

    /**
     * 型号规格
     */
    @NotBlank(message = "型号规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String xhgg;

    /**
     * 制造厂
     */
    @NotBlank(message = "制造厂不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zzc;

    /**
     * 出厂编号
     */
    @NotBlank(message = "出厂编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ccbh;

    /**
     * 管理编号
     */
    @NotBlank(message = "管理编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String glbh;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double sl;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double dj;

    /**
     * 小计
     */
    @NotNull(message = "小计不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double xj;

    /**
     * 服务方式
     */
    @NotBlank(message = "服务方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fwfs;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bz;

    /**
     * 完工编号
     */
    @NotBlank(message = "完工编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wgbh;

    /**
     * 客户名称
     */
    @NotBlank(message = "客户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String khname;

    /**
     * 完工日期
     */
    @NotNull(message = "完工日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date wgsj;

    private String orderByCode;

}
